package bb.lanxing.calc.calculator;

import bb.lanxing.calc.data.RowerPoint;
import android.util.Log;


public class RowerCalc {
    final static private String TAG = "RowerCalc";
    private RowerPoint lastRowerPoint;

    public void calc(RowerPoint rowerPoint) {
        if (this.lastRowerPoint == null) {
            this.lastRowerPoint = rowerPoint;
            return;
        }

        int rowerpower = rowerPoint.getRowerPower();
        rowerPoint.setRowerPower(rowerpower);
        this.lastRowerPoint = rowerPoint;
    }

    public void release() {
        this.lastRowerPoint = null;
    }
}
